package org.hibernate.tool.ant;

import org.hibernate.tool.hbm2x.Exporter;

import com.xcesys.extras.tool.exporter.ExtrasDataObjectExpporter;

public class ExtrasDataObjectExporterTask extends BaseExtrasExporterTask {

	public ExtrasDataObjectExporterTask(HibernateToolTask parent) {
		super(parent);
	}

	protected Exporter configureExporter(Exporter exp) {
		ExtrasDataObjectExpporter exporter = (ExtrasDataObjectExpporter) exp;
		super.configureExporter(exp);
		exporter.getProperties().setProperty("packageName", getPackageName());
		return exporter;
	}

	protected Exporter createExporter() {
		ExtrasDataObjectExpporter exporter = new ExtrasDataObjectExpporter();
		return exporter;
	}

	public String getName() {
		return "Extras Data Object " + "(Generates a set of .java files)";
	}

}
